#ifndef DETECTIONWINDOWINFO_H
#define DETECTIONWINDOWINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class DetectionWindowInfo
{
public:
    DetectionWindowInfo();

private:
    int         m_nColumn;
    int         m_nRow;
    int         m_nTotal;

public:
    int         GetImageRow(){return m_nRow;}
    int         GetImageCol(){return m_nColumn;}
    int         GetImageTotal(){return m_nTotal;}

public:
    bool writeXML(const QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);

    QJsonObject toJson();
    void    fromJson(QJsonObject obj);
};

#endif // DETECTIONWINDOWINFO_H
